package com.medusa.aps.business.modules.basic.model.input;

import com.medusa.aps.business.common.web.valid.group.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author: xh.yu
 * @createTime: 2024/02/05 11:30
 */
@Data
public class MaterialUnitDto {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "id不能为空", groups = {Update.class})
    private Integer id;
    /**
     * 生产单位
     */
    @Schema(description = "生产单位")
    @NotBlank(message = "生产单位不能为空")
    @Length(max = 20, message = "生产单位长度不能超过20")
    private String productUnit;
    /**
     * 采购单位
     */
    @Schema(description = "采购单位")
    private String purchaseUnit;
    /**
     * 生产单位:采购单位
     */
    @Schema(description = "生产单位:采购单位")
    private String productPurchaseUnitRatio;


}
